<%--
  Created by IntelliJ IDEA.
  User: finder
  Date: 2021/10/11
  Time: 16:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>register</title>
    <style>
        table {
            border: black 1px solid;
            height: 200px;
            width: 400px;
            position: absolute;
            top: 20%;
            left: 60%;
        }
        h1 {
            color: red;
            text-align: center;
        }
    </style>
</head>
<body>
<h1>${requestScope.msg}</h1>
<form action="UserServlet" method="post">
    <input type="hidden" name="flag" value="register">
    <table>
        <tr>
            <td> 用户名：</td>
            <td><input type="text" name="username"></td>
        </tr>
        <tr>
            <td>密码：</td>
            <td><input type="password" name="pwd1"></td>
        </tr>
        <tr>
            <td>确认密码：</td>
            <td><input type="password" name="pwd2"></td>
        </tr>
        <tr>
            <td><input type="submit" value="注册"></td>
            <td><input type="button" value="登录" onclick="location.href='index.jsp'"></td>
        </tr>
    </table>
</form>
</body>
</html>
